<?php
function ListOtherProduct($idP,$id,$limit=4)
{
    global $dbsql,$language;
    
    $sql_select = "select * from tblcontent where iParentId = $idP and iId != $id and iStatus = 1 limit $limit";
    return $dbsql->load($sql_select);
}

function ListPhotoByType($type,$id)
{
    global $dbsql,$language;
    
    $sql_select = "select * from tblimages where cType='$type' and iParentId =$id";
    return $dbsql->load($sql_select);
}
?>